package com.cw.lang.common.exception;

import lombok.Getter;
import lombok.Setter;

/**
 * @author chenw
 * @version V2.1
 * @since 2.1.0 2019-04-09 17:22
 */
@Getter
@Setter
public class MybatisException extends RuntimeException {
    private static final long serialVersionUID = -65430353933035648L;

    /** code */
    private final String code;

    /** description */
    private final String description;

    public MybatisException(String code, String description, Throwable cause) {
        super(cause);
        this.code = code;
        this.description = description;
    }

    public MybatisException(String code, String description) {
        super(description);
        this.code = code;
        this.description = description;
    }
}
